import ApiClient from '../base-api'

const roleApi = new ApiClient('/sys/role')

// 获取角色权限
roleApi.getAuth = (id) => {
  return roleApi.get(`getRoleAuth/${id}`)
}

// 保存角色权限
roleApi.saveAuth = (form) => {
  return roleApi.post('saveAuth', form)
}

export default roleApi
